package com.example.demo.dao.impl;

import com.example.demo.dao.StuDao;
import com.example.demo.entity.Stu;
import com.example.demo.repository.StuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class StuDaoImpl implements StuDao {
    @Autowired
    private StuRepository stuRepository;
    @Override
    public Stu findOne(Integer id) {
        return stuRepository.getOne(id);
    }
}
